import useLoginStore from '@/store/login/login'

function usePermissions(PermissionID: string) {
  const loginStroe = useLoginStore()
  const { permissions } = loginStroe
  // return Boolean(permissions.find((item) => item.includes(PermissionID)))
  return !!permissions.find((item) => item.includes(PermissionID))
}
export default usePermissions
